#!/bin/sh

if [ -n "`pidof dhcpd`" ] ; then
    %OPTWARE_TARGET_PREFIX%/bin/killall dhcpd 2>/dev/null
fi

sleep 2
rm -f %OPTWARE_TARGET_PREFIX%/var/run/dhcpd.pid
%OPTWARE_TARGET_PREFIX%/sbin/dhcpd
